/*
 * @Author: your name
 * @Date: 2020-11-24 11:02:17
 * @LastEditTime: 2020-11-26 09:14:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ITL_MES2.0_WEB\src\api\service-module\production\barcodeGeneration_maintenance.js
 */
import request from '@/utils/request'
/**
 * 查询-获取物料类型下拉框
 * @param getBomType
 */
export function getBomRule() {
  return request({
    url: `md/monopy/createSn/querySnRuleByT`,
    method: 'get'
  })
}
/**
 * 查询-获取工厂下拉框
 * @param getFactoryRule
 */
export function getFactoryRule() {
  return request({
    url: `md/monopy/createSn/querySnRuleByS`,
    method: 'get'
  })
}
/**
 * 查询-获取MES计划数据
 * @param getMesOrder
 */
export function getMesOrder(data) {
  return request({
    url: `md/monopy/createSn/page`,
    method: 'post',
    data
  })
}
/**
 * 查询-获取条码样式
 * @param getSerialCode
 */
export function getSerialCode(data) {
  return request({
    url: `md/monopy/createSn/serialCode`,
    method: 'get',
    params: data
  })
}
/**
 * 保存-确认生成条码维护
 * @param getCreateSn
 */
export function getCreateSn(data) {
  return request({
    url: `md/monopy/createSn/createSn`,
    method: 'get',
    params: data
  })
}

